import request from '@/utils/request'
import post from "@/views/system/post";

// 查询科普知识与用户查看列表
export function listView(query) {
  return request({
    url: '/system/popularscienceview/list',
    method: 'get',
    params: query
  })
}

// 查询科普知识与用户查看详细
export function getView(id) {
  return request({
    url: '/system/popularscienceview/' + id,
    method: 'get'
  })
}

// 新增科普知识与用户查看
export function addView(data) {
  return request({
    url: '/system/popularscienceview',
    method: 'post',
    data: data
  })
}

// 修改科普知识与用户查看
export function updateView(data) {
  return request({
    url: '/system/popularscienceview',
    method: 'put',
    data: data
  })
}

// 删除科普知识与用户查看
export function delView(id) {
  return request({
    url: '/system/popularscienceview/' + id,
    method: 'delete'
  })
}
